package domain.kingdom.phylum.Class;

import progeny.Chromosome;
import progeny.Gender;
import progeny.Organism;
import domain.kingdom.phylum.Chordata;

public class Mammalia extends Chordata{
	
	private Gender gender;
	
	public Mammalia(Chromosome[] chromos){
		this(chromos,Gender.randomGender());
	}
	public Mammalia(Chromosome[] chromos, Gender gender){
		this(chromos, gender, "unknown");
	}
	public Mammalia(Chromosome[] chromos, Gender gender, String species){
		super(chromos);
		this.gender = gender;
		this.setSpecies(species);
	}
	
	
	
	public boolean canMateWith(Mammalia other){
		return this.canFuck(other) && other.getGender().equals(gender);
	}
	public Gender getGender(){
		return gender;
	}
	public boolean canFuck(Organism other){
		return super.canFuck(other);
	}
}
